<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>VmallTop&nbsp;微一商城后台管理系统</title>
<include file="Public/header" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validate.js"></script>
<script type="text/javascript">
$(function(){
   
    $("#myform").validate({
        rules: {
                name : {
                    required: true,
                    maxlength : 20,
                },
                keyword : {
                    required: true,
                },
                num : {
                    required: true, 
                    digits: true,
                },


        },
        messages: {
                name : {
                    required: '请输入积分名称！',
                    maxlength: '积分名称不能超过20个字符！',
                }, 
                keyword : {
                    required: '请输入英文关键字',
                },
                num : {
                    required: '请输入每次获得积分数！',
                    digits: '积分数只能是整数',
                }, 
       },
    })
})

</script>
</head>


<body>
<div>
   
  
        <div class="list_vmall_man">
        	<div class="list_vmall_le">
              <include file="Public/integralMenu" />
            </div>
            <div class="list_vmall_rig">
            	<ul class="breadcrumb">
                    <li><a href="<{:U('integral')}>">积分管理</a> </li>
                    <li class="active"><if condition="$data.id eq ''">添加积分类型<else />修改积分类型</if></li>
                </ul>
                <div class="list_vmall_bort">
                    <form id="myform" method="post" action="<{:U('integral_add_do')}>">
                        <input type="hidden" name="id" value="<{$data.id}>">
                    	<div class="vmall_padi">
                
                             <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">积分名称</label>
                                <div class="vmaal_rols">

                                    <if condition="$data['id']">
                                    <div style="margin-top:7px;"><{$data.name}></div>
                                    <else />
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod" id="name" name="name">
                                    </if>
                                    
                                </div>
                            </div>

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">关键字</label>
                                <div class="vmaal_rols">
                                    
                                    <if condition="$data['id']">
                                        <div style="margin-top:7px;"><{$data.keyword}></div>
                                    <else />
                                        <input type="text" class="vmaal_sinw1 input_a1 int_wod" id="keyword" name="keyword" >   
                                    </if>
                                    
                                </div>
                            </div>

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">积分</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod" id="num" name="num" value="<{$data.num}>"> 

                                    <if condition="$_GET['id'] eq 3">
                                        <span style="color:red">每条等于您设置的积分，最多累加5条</span>
                                    </if>
                                    
                                </div>
                            </div>
                    
                           
                            <div class="vmall_cle">
                                <div class="vmaal_rols">
                                    <button class="v_mall_q_1" style="border:0; height:32px; padding-top:0; cursor:pointer;" type="submit">确&nbsp;&nbsp;定</button>
                                </div>
                            </div>

                         </div>
                     </form> 
                </div>
                
            </div>

        </div>
        
</div>
</body>
</html>
